<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Joomla!模板的Positions</title>
<link rel="stylesheet" href="../css/reset.css" type="text/css" />
<link rel="stylesheet" href="../css/prettify.css" type="text/css" />
<script type="text/javascript" src="../js/prettify.js"></script>
</head>

<body onload="prettyPrint()">
<h1>Joomla!模板的Positions</h1>
<hr />
<h3>Positions注册</h3>
<pre class="prettyprint linenums">
	&lt;positions&gt;
		&lt;position&gt;debug&lt;/position&gt;
		&lt;position&gt;crumbs&lt;/position&gt;
		&lt;position&gt;search&lt;/position&gt;

		&lt;position&gt;bhead-top&lt;/position&gt;
		&lt;position&gt;bhead-mid&lt;/position&gt;
		&lt;position&gt;bhead-btm&lt;/position&gt;

		&lt;position&gt;side-top&lt;/position&gt;
		&lt;position&gt;side-mid&lt;/position&gt;
		&lt;position&gt;side-btm&lt;/position&gt;

		&lt;position&gt;bbody-top&lt;/position&gt;
		&lt;position&gt;com-top&lt;/position&gt;
		&lt;position&gt;com-btm&lt;/position&gt;
		&lt;position&gt;bbody-btm&lt;/position&gt;

		&lt;position&gt;aside-top&lt;/position&gt;
		&lt;position&gt;aside-mid&lt;/position&gt;
		&lt;position&gt;aside-btm&lt;/position&gt;

		&lt;position&gt;bfoot-top&lt;/position&gt;
		&lt;position&gt;bfoot-mid&lt;/position&gt;
		&lt;position&gt;bfoot-btm&lt;/position&gt;
	&lt;/positions&gt;
</pre>
<hr />
<h3>Positions使用</h3>
<h4>固定的Positions</h4>
<pre class="prettyprint linenums">
&lt;jdoc:include type="modules" name="bhead-top" style="div" headerLevel="3" /&gt;
&lt;jdoc:include type="modules" name="bhead-mid" style="div" headerLevel="3" /&gt;
&lt;jdoc:include type="modules" name="bhead-btm" style="div" headerLevel="3" /&gt;

&lt;jdoc:include type="modules" name="side-top" style="zen" headerLevel="3" /&gt;
&lt;jdoc:include type="modules" name="side-mid" style="zen" headerLevel="3" /&gt;
&lt;jdoc:include type="modules" name="side-btm" style="zen" headerLevel="3" /&gt;

&lt;jdoc:include type="modules" name="bbody-top" style="div" headerLevel="3" /&gt;
&lt;jdoc:include type="modules" name="com-top" style="div" headerLevel="3" /&gt;
&lt;jdoc:include type="modules" name="com-btm" style="div" headerLevel="3" /&gt;
&lt;jdoc:include type="modules" name="bbody-btm" style="div" headerLevel="3" /&gt;

&lt;jdoc:include type="modules" name="aside-top" style="zen" headerLevel="3" /&gt;
&lt;jdoc:include type="modules" name="aside-mid" style="zen" headerLevel="3" /&gt;
&lt;jdoc:include type="modules" name="aside-btm" style="zen" headerLevel="3" /&gt;

&lt;jdoc:include type="modules" name="bfoot-top" style="div" headerLevel="3" /&gt;
&lt;jdoc:include type="modules" name="bfoot-mid" style="div" headerLevel="3" /&gt;
&lt;jdoc:include type="modules" name="bfoot-btm" style="div" headerLevel="3" /&gt;
</pre>
<h4>可选的Positions</h4>
<pre class="prettyprint linenums">
&lt;jdoc:include type="modules" name="crumbs" style="zen" headerLevel="3" /&gt;
&lt;jdoc:include type="modules" name="search" style="zen" headerLevel="3" /&gt;
</pre>
<h4>内置的Positions</h4>
<pre class="prettyprint linenums">
&lt;jdoc:include type="head" /&gt;
&lt;jdoc:include type="message" /&gt;
&lt;jdoc:include type="component" /&gt;
&lt;jdoc:include type="modules" name="debug" /&gt;
</pre>
<hr />
<h3>Position的风格</h3>
<p>建议crumbs和search为no，其他position的标准风格为zen，tab为可选风格。</p>
</html>
